<style>
    .font-bold{
        font-weight: bold;
    }
    .tag{
        text-align: center;
        border-radius: 3px;
        margin: 10px;
        padding: 6px 12px;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" method="POST" action="">
    <div class="row">
        <div class="col-md-12 col-sm-12">
            <div class="panel panel-default panel-intro">
                <div style="padding: 15px 0;">
                    <div class="col-md-9 font-bold">用户画像</div>
                    <div class="col-md-3">用户ID: {$user.id}</div>
                </div>

                <div class="panel-heading font-bold">
                    基础信息
                </div>
                <div class="panel-body">
                    <div class="col-md-4">手机号码： <?php echo preg_replace("/^(\d{3})\d{4}(\d{4})$/", "$1****$2", $user['phone']);?></div>
                    <div class="col-md-4">昵称： {$user.nick_name}</div>
                    <div class="col-md-4">姓名： {$user.user_name}</div>
                    <div class="col-md-4">省份： {$user.province}</div>
                    <div class="col-md-4">城市/地区： {$user.city} {$user.region}</div>
                    <div class="col-md-4">性别： <?php echo($user['sex']==1?'男':($user['sex']==2?'女':'未选择'))?></div>
                    <div class="col-md-4">角色： <?php echo($user['crowd']==1?'学生':($user['crowd']==2?'家长':($user['crowd']==3?'老师':'未选择')))?></div>
                    <?php
                        if($verify_info['status']==0 && $verify_info['dealing']==1){
                            $verify_status='认证审核中';
                        }elseif($verify_info['status']==0){
                            $verify_status='未认证';
                        }else{
                            $verify_status='已认证';
                        }
                    ?>
                    <div class="col-md-4">认证状态： {$verify_status}</div>
                    {if $verify_status!='未认证'}
                        <div class="col-md-4">认证方式： 注册认证/手动提交</div>
                        <div class="col-md-4">学校名称： {$verify_info.school_name}</div>
                        <div class="col-md-4">学校类型： <?php echo($user['type']==1?'高中':($user['type']==2?'中职':($user['type']==3?'大学':'未选择')))?></div>
                        <div class="col-md-4">身份： {$verify_info.identity}</div>
                        {if $user.crowd==3}
                        <div class="col-md-4">部门： {$user.department}</div>
                        <div class="col-md-4">职务： {$user.duty}</div>
                        {/if}
                    {/if}
                </div>

                <div class="panel-heading font-bold">
                    高考信息
                </div>
                <div class="panel-body">
                    <div class="col-md-4">高考类别： {$user.candidates_identity}</div>
                    <div class="col-md-4">高考年份： {$user.graduation}年</div>
                    <div class="col-md-4">日常分数/高考成绩： {$user.score1}</div>
                    <div class="col-md-4">选考科目： {$user.subject}</div>
                    <div class="col-md-4">意向专业： {$user.major}</div>
                </div>

                <div class="panel-heading font-bold">
                    用户标签
                </div>
                <div class="panel-body">
                    {foreach name="tag_info" item="vo"}
                        <?php
                            if($vo['tag_id']==1){
                                $user_tag='普通高考';
                                $tag_color='#0D9AE4';
                            }elseif($vo['tag_id']==2){
                                $user_tag='春季高考';
                                $tag_color='#18bc9c';
                            }elseif($vo['tag_id']==3){
                                $user_tag='艺术类';
                                $tag_color='#e74c3c';
                            }elseif($vo['tag_id']==4){
                                $user_tag='体育类';
                                $tag_color='#ffff00';
                            }elseif($vo['tag_id']==5){
                                $user_tag='特殊类';
                                $tag_color='#FFA500';
                            }
                        ?>
                        <div class="col-md-1 tag" style="color:white;background-color: {$tag_color}">{$user_tag}</div>
                    {/foreach}
                </div>

                <div class="panel-heading font-bold">
                    会员信息
                </div>
                <div class="panel-body">
                    <div class="col-md-4">五查会员： {$vip_info.wucha.vip_time_type}</div>
                    <div class="col-md-4">模拟填报会员： {$vip_info.tianbao.vip_time_type}</div>
                    <div class="col-md-4">陪伴会员： {$vip_info.peiban.vip_time_type}</div>
                    <table id="table1" class="table table-striped table-bordered table-hover table-nowrap"
                           width="100%">
                    </table>
                </div>

                <div class="panel-heading font-bold">
                    商品订单信息
                </div>
                <div class="panel-body">
                    <div class="col-md-4">订单总金额： {$user.total_money/100}元</div>
                    <div class="col-md-4">订单总数： {$user.order_num}</div>
                    <table id="table2" class="table table-striped table-bordered table-hover table-nowrap"
                           width="100%">
                    </table>
                </div>

                <div class="panel-heading font-bold">
                    行为数据
                </div>
                <div class="panel-body">
                    <div class="col-md-4">注册时间： {$user.reg_time|date='Y-m-d H:i:s',###}</div>
                    <?php $register_type = ($user['register_type']==1?'其他':($user['register_type']==2?'微信授权':($user['register_type']==3?'合作学校学生/家长':($user['register_type']==4?'老师入口':'0未定义'))))?>
                    <div class="col-md-4">注册方式： {$register_type}</div>
                    <div class="col-md-4">最后登录时间： {$user.last_time|date='Y-m-d H:i:s',###}</div>
                </div>
            </div>
        </div>
        <div class="layer-footer">
            <input type="hidden" id="user_id" name="user_id" value="{$user.user_id}"/>
            <input type="hidden" id="is_hacker" name="is_hacker" value="{$user.is_hacker}"/>
            <div class="col-xs-12 col-sm-8">
                {if condition="$user.is_hacker eq '2'"}
                <button type="button" class="btn btn-primary btn-embossed set_black">移出黑名单</button>
                {else}
                <button type="button" class="btn btn-primary btn-embossed set_black">拉黑</button>
                {/if}
            </div>
        </div>
    </div>
</form>




















<!--<div class="panel panel-default panel-intro">-->
<!--    <div class="panel-body">-->
<!--        <div id="myTabContent" class="tab-content">-->
<!--            <div class="tab-pane fade active in" id="one">-->
<!--                <div class="widget-body no-padding">-->
<!--                    <div id="toolbar" class="toolbar">-->
<!--                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>-->
<!--                    </div>-->
<!--                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"-->
<!--                           width="100%">-->
<!--                    </table>-->
<!--                    <table id="table1" class="table table-striped table-bordered table-hover table-nowrap"-->
<!--                           width="100%">-->
<!--                    </table>-->
<!--                </div>-->
<!--            </div>-->

<!--        </div>-->
<!--    </div>-->
<!--    <div class="layer-footer">-->
<!--        <input type="hidden" id="user_id" name="user_id" value="{$user.user_id}"/>-->
<!--        <input type="hidden" id="is_hacker" name="is_hacker" value="{$user.is_hacker}"/>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            {if condition="$user.is_hacker eq '2'"}-->
<!--            <button type="button" class="btn btn-primary btn-embossed set_black">移出黑名单</button>-->
<!--            {else}-->
<!--            <button type="button" class="btn btn-primary btn-embossed set_black">拉黑</button>-->
<!--            {/if}-->
<!--        </div>-->
<!--    </div>-->
<!--</div>-->